package com.demo.controller;

import com.demo.model.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Repository;

import javax.annotation.Resource;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: Admin
 * Date: 2023-02-10
 * Time: 19:17
 */

@Component
public class UserController3 {

    @Autowired
    @Qualifier(value = "user2")
    private User user;

    public void doUserController3() {
        System.out.println("Do userController 3");
        System.out.println("userID:" + user.getId()  + "| userName:" + user.getName());
    }
}
